package com.dsy.xiangcun_index.mapper;

import com.dsy.tools.entity.TbHistory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import com.dsy.tools.common.utils.QueryObj;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.springframework.stereotype.Component;

import java.util.List;
/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author dsy
 * @since 2021-02-28
 */
@Component
public interface TbHistoryMapper extends BaseMapper<TbHistory> {

    IPage<TbHistory> getAllHistory(Page<TbHistory> page, @Param("we") QueryWrapper<QueryObj> wrapper);


    TbHistory getHistoryById(Integer historyId);

    List<TbHistory> getIndexHistoryList();

}
